package com.education.wisdom.service;


import com.education.wisdom.pojo.Paper;
import com.education.wisdom.vo.PaperVo;

import java.util.List;
import java.util.Map;

/**
 * 试卷 服务层
 *
 * @author ruoyi
 * @date 2018-11-13
 */
public interface IPaperService {
    /**
     * 查询试卷信息
     *
     * @param id 试卷ID
     * @return 试卷信息
     */
    public Paper selectPaperById(Integer id);


    /**
     * 查询所有试卷
     *
     * @param map
     * @return
     */
    List<Paper> selectAllPaper(Map<String, Object> map);

    /**
     * 统计试卷下问题数量
     *
     * @param id
     * @return
     */
    Integer countQuestion(Integer id);


    /**
     * 查询小节下所有试卷
     *
     * @param map
     * @return
     */
    List<Paper> selectPaperByCatalog(String catalogId);

    /**
     * 查询试卷列表
     *
     * @param map 试卷信息
     * @return 试卷集合
     */
    public List<Paper> selectPaperList(Map<String, Object> map);

    /**
     * 新增试卷
     *
     * @param paper 试卷信息
     * @return 结果
     */
    public int insertPaper(PaperVo paper);
    public int insertPaperOne(Paper paper);
    public int insertPaperTest(PaperVo paper);

    /**
     * 修改试卷
     *
     * @param paper 试卷信息
     * @return 结果
     */
    public int updatePaper(PaperVo paper);
    public int updatePaperTest(PaperVo paper);

    /**
     * 删除试卷信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePaperByIds(String ids);

    public List<Paper> selectPaperListById(Map<String, Object> map);


    public List<Paper> selectPaperAllListById(Map<String, Object> map);


    public List<Paper> selectTitlelists(Map<String, Object> map);


    public List<Paper> selectTitlelist();


    public List<Paper> selectAllForPaper(Map<String, Object> map);

    List<Paper> selectByAppraisalCatalogId(Integer appraisalCatalogId);

    List<Paper> selectByLike(String name,String appraisalCatalogId);

    List<Paper> selectChapterTest(String userId);

    List<Paper> selectVocationalSkillTest(String userId);

    List<Paper> selectVocationalSkillTest1(String userId);
}
